tests/animated-resizing: Use gtk_window_default_size() instead
authorJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 08:41:54 +0000 (09:41 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 19:37:29 +0000 (20:37 +0100)
This will actually make it resize on-demand, as the default size is the
size used when computing the window size when the size is not fixed.

tests/animated-resizing.c

index c9a316a5608095c638f6acff835c521514179b70..bf7a0b68c49e0d55b5065392a7aceabfb1363bbb 100644 (file)
@@ -123,7 +123,7 @@ on_frame (double progress)
       window_height = HEIGHT + jitter;
     }
 
-  gtk_widget_set_size_request (gtk_window_get_child (GTK_WINDOW (window)),
+  gtk_window_set_default_size (GTK_WINDOW (window),
                                window_width, window_height);
 
   gtk_widget_queue_draw (window);